package com.jd.cmdb.tsc.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by tianzhengguo on 2016/1/12.
 */
@Repository
public class BaseDao {
    @Autowired
    protected SqlSessionTemplate sqlSession;

//    @Autowired
//    protected SqlSessionTemplate sqlSessionReader;

    public SqlSessionTemplate getSqlSession() {
        return sqlSession;
    }

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

//    public SqlSessionTemplate getSqlSessionReader() {
//        return sqlSessionReader;
//    }
//
//    public void setSqlSessionReader(SqlSessionTemplate sqlSessionReader) {
//        this.sqlSessionReader = sqlSessionReader;
//    }
}
